﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FreshCms.BackEnd
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CkInit();
            }
        }

        private void CkInit()
        {
            CKEditorControl1.Language = "vi";
            CKEditorControl1.BasePath = "/BackEnd/js/ckeditor/";
            CKEditorControl1.Skin = "office2003";
            //CKEditorControl1.config.filebrowserImageBrowseUrl = "/ckfinder/ckfinder.html?type=Images";
            //CKEditorControl1.config.filebrowserImageUploadUrl = "/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images";
            CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
            _FileBrowser.BasePath = "/BackEnd/js/ckfinder/";
            _FileBrowser.SetupCKEditor(CKEditorControl1);
        }
    }
}